import { useGetList } from "./learn/hooks/13";

function App() {
  const { list } = useGetList();
  return (
    <div className="App">
      <h1>自定义hook函数封装接口请求</h1>
      <ul>
        {list.map((item, index) => (
          <li key={index}>{item.name}</li>
        ))}
      </ul>
    </div>
  );
}

export default App;
